package user

import (
	"fmt"
	"goProject/api/auth"
	"net/http"

	"gitee.com/ruige_fun/util/std"
	"github.com/kataras/iris/v12"
)

func logout(c iris.Context) {
	_ = auth.Token.Del(fmt.Sprint(c.GetID()))
	c.JSON(std.NewResp(http.StatusOK, "", nil, nil))
}
